str1 = 'abcdefg'
list1 = [10, 20, 30, 40, 50]

# max() 最大值
print(max(str1))  # g
print(max(list1))  # 50

# min() 最小值
print(min(str1))  # a
print(min(list1))  # 10
